package com.axonactive.training.service;

import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import com.axonactive.training.dao.IncomeDao;
import com.axonactive.training.model.Income;

@Stateless
public class IncomeService {
	@Inject
	IncomeDao incomeDao;
	
	public void saveIncome(Income income){
		incomeDao.saveIncome(income);
	}
	
	public List<Income> getIncomeList(){
		return incomeDao.getIncomeList();
	}
}
